package com.bdqn.zhang.utils;

import com.bdqn.zhang.service.BaseService;
import com.bdqn.zhang.service.LoginService;
import com.bdqn.zhang.service.StartService;
import com.bdqn.zhang.service.UserService;
import com.bdqn.zhang.service.impl.LoginServiceImpl;
import com.bdqn.zhang.service.impl.StartServiceImpl;

public class ServiceFactory {


    //
    public static BaseService getService(String key){
        if ("start".equals(key)) {
            return new StartServiceImpl();
        } else if ("login".equals(key)){
            return new LoginServiceImpl();
        }
        return null;
    }




}
